package com.ruoyi.system.service.impl;

import java.util.List;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;
import com.ruoyi.system.mapper.RiderPerformanceMapper;
import com.ruoyi.system.domain.RiderPerformance;
import com.ruoyi.system.service.IRiderPerformanceService;

/**
 * 配送员绩效统计Service业务层处理
 * 
 * @author 心
 * @date 2025-06-30
 */
@Service
public class RiderPerformanceServiceImpl implements IRiderPerformanceService 
{
    @Autowired
    private RiderPerformanceMapper riderPerformanceMapper;

    /**
     * 查询配送员绩效统计
     * 
     * @param id 配送员绩效统计主键
     * @return 配送员绩效统计
     */
    @Override
    public RiderPerformance selectRiderPerformanceById(Long id)
    {
        return riderPerformanceMapper.selectRiderPerformanceById(id);
    }

    /**
     * 查询配送员绩效统计列表
     * 
     * @param riderPerformance 配送员绩效统计
     * @return 配送员绩效统计
     */
    @Override
    public List<RiderPerformance> selectRiderPerformanceList(RiderPerformance riderPerformance)
    {
        return riderPerformanceMapper.selectRiderPerformanceList(riderPerformance);
    }

    /**
     * 新增配送员绩效统计
     * 
     * @param riderPerformance 配送员绩效统计
     * @return 结果
     */
    @Override
    public int insertRiderPerformance(RiderPerformance riderPerformance)
    {
        return riderPerformanceMapper.insertRiderPerformance(riderPerformance);
    }

    /**
     * 修改配送员绩效统计
     * 
     * @param riderPerformance 配送员绩效统计
     * @return 结果
     */
    @Override
    public int updateRiderPerformance(RiderPerformance riderPerformance)
    {
        return riderPerformanceMapper.updateRiderPerformance(riderPerformance);
    }

    /**
     * 批量删除配送员绩效统计
     * 
     * @param ids 需要删除的配送员绩效统计主键
     * @return 结果
     */
    @Override
    public int deleteRiderPerformanceByIds(Long[] ids)
    {
        return riderPerformanceMapper.deleteRiderPerformanceByIds(ids);
    }

    /**
     * 删除配送员绩效统计信息
     * 
     * @param id 配送员绩效统计主键
     * @return 结果
     */
    @Override
    public int deleteRiderPerformanceById(Long id)
    {
        return riderPerformanceMapper.deleteRiderPerformanceById(id);
    }
}
